from django.urls import path
from apps.goods.views import GoodsView, GoodsAlterView, GoodsReduce, ClearAllCache

urlpatterns = [
    # 商品接口
    path('', GoodsView.as_view(), name="goods"),
    path('<int:id>', GoodsAlterView.as_view(), name="alter-goods"),
    path('reduce/<int:id>', GoodsReduce.as_view(), name='reduce'),
    path('clear_cache/', ClearAllCache.as_view())
]
